package com.arelikebrothers.demo.java8.lambda.fruitInfo;

/**
 * Created by zhangjianxue on 2017/5/4.
 */
public class Fruit {
    Integer weight;
    String color;

    public Fruit(Integer weight) {
        this.weight=weight;
       // this.color=color;
    }


    public void setWeight(Integer weight) {
        this.weight = weight;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public Integer getWeight() {
        return weight;
    }

    public String getColor() {
        return color;
    }

    @Override
    public String toString() {
        return getClass().getName()+"{" +
            "weight=" + weight +
            ", color='" + color + '\'' +
            '}';
    }
}
